package com.zjw.service.impl;

import com.zjw.entity.po.User;
import com.zjw.mapper.UserMapper;
import com.zjw.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;


    @Override
    public User selectUserByWid(int wid) {
        return userMapper.selectUserByWid(wid);
    }

    @Override
    public User selectUserByEmail(String email) {
        return userMapper.selectUserByEmail(email);
    }

    @Override
    public int updateWidByEmail(Integer wid, String email) {
        return userMapper.updateWidByEmail(wid,email);
    }

    @Override
    public int updateByPrimaryKeySelective(User record) {
        return userMapper.updateByPrimaryKeySelective(record);
    }
}
